package com.fer.andenginemvc.api.gameObjects;

import org.andengine.entity.primitive.Rectangle;
import org.andengine.extension.physics.box2d.PhysicsFactory;
import org.andengine.extension.physics.box2d.PhysicsWorld;
import org.andengine.opengl.vbo.VertexBufferObjectManager;

import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physics.box2d.BodyDef.BodyType;
import com.badlogic.gdx.physics.box2d.FixtureDef;

public class GameBorder extends GameObject<Rectangle> {

	
	
	public GameBorder(PhysicsWorld world, VertexBufferObjectManager vbom, float x, float y , float width, float 
			height) {
		super(world, vbom, new Rectangle(x, y, width, height, vbom));
	}

	@Override
	public Body initBody() {
		return PhysicsFactory.createBoxBody(physWorld, entity, BodyType.StaticBody, fixtureDef);
	}

	@Override
	public FixtureDef initFixtureDef() {
		return PhysicsFactory.createFixtureDef(1f, 0f, 1f);
	}


}
